package com.github.caijh.mall.express.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.caijh.mall.common.PageParams;
import com.github.caijh.mall.express.model.ShippingTemplatesRegion;
import com.github.caijh.mall.express.request.ShippingTemplatesRegionRequest;

/**
 * ShippingTemplatesRegionService 接口
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: CRMEB Team <admin@crmeb.com>
 * +----------------------------------------------------------------------
 */
public interface ShippingTemplatesRegionService extends IService<ShippingTemplatesRegion> {

    List<ShippingTemplatesRegion> getList(PageParams pageParams);

    /**
     * 根据ids和cityid查询
     *
     * @param ids    id集合
     * @param cityId 城市id
     * @return 运费模版集合
     */
    List<ShippingTemplatesRegion> getListInIdsAndCityId(List<Integer> ids, Integer cityId);

    void saveAll(List<ShippingTemplatesRegionRequest> shippingTemplatesRegionRequestList, Integer type, Integer id);

    List<ShippingTemplatesRegionRequest> getListGroup(Integer tempId);

    void delete(Integer tempId);

}
